package ar.edu.uba.fi.jmit.monitorengine.mock;

import java.util.LinkedList;
import java.util.List;
import java.util.Map;

import org.apache.log4j.Logger;

import ar.edu.uba.fi.jmit.integrationcommons.Event;
import ar.edu.uba.fi.jmit.monitorengine.core.Monitor;
import ar.edu.uba.fi.jmit.monitorengine.exception.ConfigurationException;

public class MockMonitor4 extends Monitor {
	
	protected static Logger logger = Logger.getLogger(MockMonitor4.class);
	
	private List<Event> executedEvents;

	@Override
	public void doExecute(Event event) {
		this.executedEvents.add(event);
	}

	@Override
	public void init(Map<String, String> configuration)
			throws ConfigurationException {
		executedEvents = new LinkedList<Event>();
	}
	
	public List<Event> getExecutedEvents() {
		return this.executedEvents;
	}

}
